







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets a string representation of the elements in the collection.
The string representation starts with "{", has a list of items separated
by commas (","), and ends with "}". Each item in the collection is
converted to a string by calling its ToString method (null is represented by "null").
Contained collections (except strings) are recursively converted to strings by this method.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public static string ToString<T>( IEnumerable<T> collection ) |
Visual Basic (Declaration) |
---|
Public Shared Function ToString(Of T) ( _ collection As IEnumerable(Of T) _ ) As String |
Visual C++ |
---|
public: generic<typename T> static String^ ToString ( IEnumerable<T>^ collection ) |
Parameters
- collection
- IEnumerable<(Of <T>)>
A collection to get the string representation of.
Return Value
The string representation of the collection. If collection is null, then the string "null" is returned.
Type Parameters
- T
See Also
Algorithms Class
Wintellect.PowerCollections Namespace